<?php
namespace Home\Model;

use Think\Model\RelationModel;

class CardModel extends RelationModel
{

    protected $_link = array(
        'User' => array(
            'mapping_type' => self::BELONGS_TO,
            'foreign_key' => 'uid',
            //'mapping_fields' => 'user',
            //'as_fields' => 'user,email',

        ),
    );
}

